﻿<%@ Control Language="C#" AutoEventWireup="true"
    Inherits="Pages_Controls_DimensionSelector" Codebehind="DimensionSelector.ascx.cs" %>
<table style="display:inline-block;vertical-align:middle;margin-left:5px;margin-bottom:0px;width:465px;">
    <tr style="vertical-align:middle;margin-bottom:2px ">
        <td style="vertical-align:middle;padding:0px">
            <asp:Label ID="lblSide" runat="Server" Text="Side " Width="45px" ForeColor="Green" Font-Bold="true"/> 
        </td>
        <td style="vertical-align:middle;padding:0px">
            <asp:TextBox ID="txtDimension" runat="Server" CssClass="required" Width="40px" onkeydown="isNumberKey();"/> inches
        </td>
        <td style="vertical-align:middle;padding: 0px 2px 0px 2px">
            <asp:RadioButtonList ID="rblSideType" runat="server" AutoPostBack="true" RepeatDirection="Horizontal"/>
        </td>
        <td style="vertical-align:middle;padding:0px">
            <asp:CheckBox ID="cbBacksplash" Text="Backsplash" runat="server" TextAlign="right" AutoPostBack="true" />
        </td>
    </tr>
</table>
<script type="text/javascript" language="javascript">
    function isNumberKey() {
        if (!(((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105)) || (event.keyCode == 8) || (event.keyCode == 9) || (event.keyCode == 37) || (event.keyCode == 39) || (event.keyCode == 46) || (event.keyCode == 190))) {
            event.returnValue = false;
        }
    }

 </script>
